﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Public.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Cms.Web.UI.Admin.Default" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script language="javascript" type="text/javascript">
        //<![CDATA[
        function browserCheck() {
            if (document.documentMode && document.documentMode < 8) {
                var unsupportedBrowser = document.getElementById("unsupportedBrowser");
                unsupportedBrowser.style.display = "block";
                unsupportedBrowser.focus();
                document.getElementById("ie8").style.display = "block";
            }
        }
        //]]>
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="body" runat="server">
    <asp:Panel ID="pnlLogin" runat="server" DefaultButton="lbLogin" CssClass="clearFloats">
        <div id="unsupportedBrowser" style="position: absolute; top: -20px; left: 0px; width: 500px; height: 300px; overflow: auto; display: none; background: #ffffff; border: 1px solid #aaaaaa; z-index: 666;">
            <div id="ie8" style="display: none; padding: 20px;">
                <p>You are using a version of Internet Explorer that is not supported. If you are using Internet Explorer 8, check that Compatibility View is not enabled.</p>
            </div>
            <a href="javascript:void(0);" onclick="document.getElementById('unsupportedBrowser').style.display = 'none';" style="margin-left: 20px;">Close this window</a>
        </div>
        <table id="form">
            <tr>
                <td><cms:LocalizedLiteral ID="llUsername" runat="server" /></td>
                <td><cms:LocalizedLiteral ID="llPassword" runat="server" /></td>
            </tr>
            <tr>
                <td><asp:TextBox ID="txtUsername" runat="server" /></td>
                <td><asp:TextBox ID="txtPassword" runat="server" TextMode="Password" /></td>
                <td><asp:LinkButton ID="lbLogin" runat="server" OnClick="lbLogin_Click" CssClass="orangeButton"><span><span><img src="Img/icons/lock_open.png" alt="" /><span><cms:LocalizedLiteral ID="llLogin" runat="server" /></span></span></span></asp:LinkButton></td>
            </tr>
            <tr>
                <td colspan="3">
                    <table border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td style="padding-right: 4px;"><asp:CheckBox ID="chkRememberMe" runat="server" /></td>
                            <td style="cursor: default;" onclick="document.getElementById('ctl00_body_chkRememberMe').checked = !(document.getElementById('ctl00_body_chkRememberMe').checked);"><cms:LocalizedLiteral ID="llRememberMe" runat="server" /></td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        <asp:Panel ID="pnlError" runat="server" Visible="false" style="color: #aa2200; padding-top: 8px; padding-left: 2px;">
            <asp:Literal ID="litError" runat="server" />
        </asp:Panel>
    </asp:Panel>
    <script language="javascript">
        //<![CDATA[
        iLib.Dom.AddListener(window, "load", browserCheck);
        //]]>
    </script>
</asp:Content>
